package com.mxx.democharts2.web.controller;

import com.mxx.democharts2.pojo.SmartProcessTask;
import com.mxx.democharts2.service.MxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MxxController {

    @Autowired
    private MxxService mxxService;

    @GetMapping("/findSpt")
    public SmartProcessTask findSmartProcessTask(Integer key){
        SmartProcessTask spt = mxxService.findSmartProcessTaskByKey(key);
        System.out.println("----");
        return spt;
    }

    @GetMapping("/test")
    public String test(){
        System.out.println("123---");
        return "123";
    }
}
